package com.yc.boot.minio.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 杨智杰
 * @since 2021/8/26 14:16
 */
@Data
@Accessors(chain = true)
@ApiModel("文件信息")
@TableName("sys_minio")
public class SysMinio {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键Id")
    private Long id;

    @TableField("url")
    @ApiModelProperty(value = "下载地址")
    private String url;

    @TableField("bucket")
    @ApiModelProperty(value = "文件桶")
    private String bucket;

    @TableField("path")
    @ApiModelProperty(value = "文件路径")
    private String path;

    @TableField("indexes")
    @ApiModelProperty(value = "文件索引")
    private String indexes;

    @TableField("file_name")
    @ApiModelProperty(value = "文件名")
    private String fileName;

    @TableField("upload_time")
    @ApiModelProperty(value = "上传时间")
    private String uploadTime;

    @TableField("upload_by")
    @ApiModelProperty(value = "上传用户")
    private Long uploadBy;
}
